-- GENERATED SPELL FOR [Skeletal Flayer] --


function spell0_1783(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_1783', 537, 1)
end

function Sorts_1783(pUnit, Event)
local choix_sorts_1783 = math.random(0, 0)
if choix_sorts_1783 == 0 then
pUnit:RegisterEvent('spell0_1783', 1, 1)
end
end

function mob1783_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1783', math.random(1500, 3000), 1)
end

function mob1783_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1783_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1783_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1783, 1, 'mob1783_Action')
RegisterUnitEvent(1783, 2, 'mob1783_Leave')
RegisterUnitEvent(1783, 3, 'mob1783_Kill')
RegisterUnitEvent(1783, 4, 'mob1783_Die')
